<?php

namespace App\Repositories;

use App\Models\StaffInfo;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class StaffInfoRepository
 * @package App\Repositories
 * @version December 8, 2018, 7:53 pm CST
 *
 * @method StaffInfo findWithoutFail($id, $columns = ['*'])
 * @method StaffInfo find($id, $columns = ['*'])
 * @method StaffInfo first($columns = ['*'])
*/
class StaffInfoRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'oid',
        'name' => 'like',
        'avatar',
        'idno' => 'like',
        'mobile',
        'vpl_number' => 'like',
        'id_card',
        'driving_license',
        'vehicle_license',
        'vehicle_license_b',
        'apron_card',
        'vehicle_type',
        'autherized',
        'status'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return StaffInfo::class;
    }
}
